home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 January / PCWorld_2002-01_cd.bin / Novinky / Becher / 1. Zlaty Kalich / ZlatyKalich.exe / scripts / DefineButton2_1291 / BUTTONCONDACTION on(release).as next >
Text File  |  2001-11-12  |  1KB  |  52 lines

  1. on(release){
  2.    if(_root.poz == "b")
  3.    {
  4.       _root.pepa.gotoAndPlay("bd");
  5.    }
  6.    else if(_root.poz == "c")
  7.    {
  8.       _root.pepa.gotoAndPlay("cd");
  9.    }
  10.    else if(_root.poz == "d")
  11.    {
  12.       if(_root.draglej == 0)
  13.       {
  14.          if(_root.izvuk == 1)
  15.          {
  16.             _root.loadzvuk.gotoAndPlay("totalk_vasiletenku");
  17.          }
  18.          else
  19.          {
  20.             _root.totalk.gotoAndPlay("vasiletenku");
  21.          }
  22.       }
  23.       else if(_root.draglej == 1)
  24.       {
  25.          stopDrag();
  26.          _root.itembar_remove(1);
  27.          _root.draglej = 0;
  28.          _root.letenka = 2;
  29.          if(_root.izvuk == 1)
  30.          {
  31.             _root.loadzvuk.gotoAndPlay("totalk_stastnylet");
  32.          }
  33.          else
  34.          {
  35.             _root.totalk.gotoAndPlay("stastnylet");
  36.          }
  37.       }
  38.       else
  39.       {
  40.          _root.stopdragall();
  41.          if(_root.izvuk == 1)
  42.          {
  43.             _root.loadzvuk.gotoAndPlay("totalk_letuskatonechci");
  44.          }
  45.          else
  46.          {
  47.             _root.totalk.gotoAndPlay("letuskatonechci");
  48.          }
  49.       }
  50.    }
  51. }
  52.